@media screen and (min-width: 320px) {
    html {
        font-size: 32px;
    }

    .time .clock {
        transform: scale(1.3);
    }
}

@media screen and (min-width: 360px) {
    html {
        font-size: 36px;
    }
}

@media screen and (min-width: 375px) {
    html {
        font-size: 37.5px;
    }
}

@media screen and (min-width: 384px) {
    html {
        font-size: 38.4px;
    }
}

@media screen and (min-width: 400px) {
    html {
        font-size: 40px;
    }
}

@media screen and (min-width: 414px) {
    html {
        font-size: 41.4px;
    }
}

@media screen and (min-width: 424px) {
    html {
        font-size: 42.4px;
    }
}

@media screen and (min-width: 480px) {
    html {
        font-size: 48px;
    }
}

@media screen and (min-width: 540px) {
    html {
        font-size: 54px;
    }

    body {
        background-image: url(../images/classroom.jpeg) !important;
        background-size: 100% 100% !important;
        background-color: #ccc !important;
        background-attachment: fixed;
    }

    .time .clock {
        transform: scale(1);
    }

    .time .clock {
        width: 50% !important;
    }

    .time .info {
        width: 50% !important;
    }
}

@media screen and (min-width: 720px) {
    html {
        font-size: 72px;
    }
}

@media screen and (min-width: 750px) {
    html {
        font-size: 75px;
    }
}

@media screen and (min-width: 800px) {
    html {
        font-size: 80px;
    }
}

@media screen and (min-width: 900px) {
    html {
        font-size: 90px;
    }
}

@media screen and (min-width: 1000px) {
    html {
        font-size: 100px;
    }
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: url(../images/cherry.jpg) no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;
}

body {
    width: 90vw;
    margin: 0 auto;
}

// header栏
.header {
    width: 100%;
    height: 40px;
    margin-top: 7px;
    background-color: #ddd;
    display: flex;
    justify-content: space-between;
    align-content: center;
    border-radius: 20px;

    .slogan {
        width: 50%;
        height: 100%;
        position: relative;
        z-index: 2;

        h1 {

            &:nth-child(1) {
                position: absolute;
                line-height: 100%;
                top: 12px;
                left: 20px;
                width: 23px;
                font-size: 21px;
            }

            &:nth-child(2) {
                position: absolute;
                line-height: 100%;
                top: 15.68px;
                left: 45px;
                width: 99px;
                font-size: 16px;
                font-weight: 400;
            }
        }
    }

    .photo {
        position: relative;
        width: 50%;
        height: 100%;
        z-index: 2;

        a {
            color: #fff;

            img {
                width: 24px;
                margin-top: 2px;
                position: absolute;
                top: 5px;
                right: 50px;
            }

            span {
                &:nth-of-type(1) {
                    position: absolute;
                    top: 7.4px;
                    right: 25.7px;
                    width: 24px;
                    height: 24px;
                    display: inline-block;
                    font-size: 23px;
                    line-height: 100%;
                }

                &:nth-of-type(2) {
                    width: 12px;
                    height: 12px;
                    display: inline-block;
                    position: absolute;
                    top: 6.8px;
                    line-height: 100%;
                    right: 15px;
                    font-size: 12px;
                }

                &:nth-of-type(3) {
                    display: inline-block;
                    position: absolute;
                    top: 16.1px;
                    right: 15px;
                    font-size: 12px;
                }
            }
        }
    }
}

// 时间栏
.time {
    width: 100%;
    height: 4rem;
    margin-top: 8px;

    .clock {
        display: flex;
        justify-content: center;
        align-items: center;
        float: left;
        width: 100%;
        height: 4rem;

        .outside {
            position: relative;
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            background-color: #dde1e7;
            box-shadow: -0.05rem -0.05rem .07rem #ddd,
                .08rem .08rem .05rem rgba(94, 104, 121, 0.288);

            &::before {
                content: "";
                position: absolute;
                top: .15rem;
                left: .15rem;
                width: 2.7rem;
                height: 2.7rem;
                background-color: #dde1e7;
                border-radius: 50%;
                box-shadow: inset -0.05rem -0.05rem .03rem #fff,
                    inset .08rem .08rem .05rem rgba(94, 104, 121, 0.288);
            }

            &::after {
                content: "";
                position: absolute;
                top: 1.175rem;
                left: 1.175rem;
                width: .65rem;
                height: .65rem;
                background-color: #dde1e7;
                border-radius: 50%;
                box-shadow: -0.03rem -0.03rem .03rem #ddd,
                    .03rem .03rem .05rem rgba(94, 104, 121, 0.288);
                z-index: 1;
            }

            .dot1 {
                position: absolute;
                width: .16rem;
                height: .16rem;
                background-color: #404040;
                top: 1.42rem;
                left: 1.42rem;
                z-index: 3;
                border-radius: 50%;
            }

            .dot2 {
                position: absolute;
                width: .1rem;
                height: .1rem;
                background-color: #3498db;
                top: 1.45rem;
                left: 1.45rem;
                z-index: 5;
                border-radius: 50%;
            }

            div[class="point"] {
                position: absolute;
                top: 1.46rem;
                left: 1.485rem;
                z-index: 3;
                width: .03rem;
                height: .08rem;
                background-color: #404040;
            }

            div {
                &:nth-child(3) {
                    width: .05rem;
                    height: .12rem;
                    top: 1.44rem;
                    left: 1.475rem;
                    transform: rotate(0) translateY(-1.28rem);
                }

                &:nth-child(4) {
                    transform: rotate(30deg) translateY(-1.29rem);
                }

                &:nth-child(5) {
                    transform: rotate(60deg) translateY(-1.29rem);
                }

                &:nth-child(6) {
                    width: .05rem;
                    height: .12rem;
                    top: 1.44rem;
                    left: 1.475rem;
                    background-color: #3498db;
                    transform: rotate(90deg) translateY(-1.28rem);
                }

                &:nth-child(7) {
                    transform: rotate(120deg) translateY(-1.29rem);
                }

                &:nth-child(8) {
                    transform: rotate(150deg) translateY(-1.29rem);
                }

                &:nth-child(9) {
                    width: .05rem;
                    height: .12rem;
                    top: 1.44rem;
                    left: 1.475rem;
                    transform: rotate(180deg) translateY(-1.28rem);
                }

                &:nth-child(10) {
                    transform: rotate(210deg) translateY(-1.29rem);
                }

                &:nth-child(11) {
                    transform: rotate(240deg) translateY(-1.29rem);
                }

                &:nth-child(12) {
                    width: .05rem;
                    height: .12rem;
                    top: 1.44rem;
                    left: 1.475rem;
                    background-color: #3498db;
                    transform: rotate(270deg) translateY(-1.28rem);
                }

                &:nth-child(13) {
                    transform: rotate(300deg) translateY(-1.29rem);
                }

                &:nth-child(14) {
                    transform: rotate(330deg) translateY(-1.29rem);
                }
            }


            .sec {
                //秒针
                position: absolute;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                top: 0;
                left: 1.25rem;
                width: .5rem;
                height: 3rem;
                z-index: 6;

                &::before {
                    content: '';
                    display: block;
                    width: .03rem;
                    height: 1.3rem;
                    background-color: #3498db;
                    margin-top: .35rem;
                    border-radius: .03rem .03rem 0 0;
                }

                &::after {
                    content: '';
                    display: block;
                    width: .08rem;
                    height: .27rem;
                    background-color: #3498db;
                    border-radius: .03rem;
                    margin-bottom: 1rem;
                }
            }

            .min {
                //分针
                position: absolute;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                top: 0;
                left: 1.25rem;
                width: .5rem;
                height: 3rem;
                z-index: 4;

                &::before {
                    content: '';
                    display: block;
                    width: 0;
                    height: 0;
                    border-left: .05rem solid transparent;
                    border-right: .05rem solid transparent;
                    border-bottom: .7rem solid #e95949;
                }

                &::after {
                    content: '';
                    display: block;
                    width: 0;
                    height: 0;
                    border-left: solid .05rem transparent;
                    border-right: solid .05rem transparent;
                    border-top: solid .3rem #e95949;
                    margin-bottom: .92rem;
                }

            }

            .hour {
                //分针
                position: absolute;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                top: 0;
                left: 1.25rem;
                width: .5rem;
                height: 3rem;
                z-index: 2;

                &::before {
                    content: '';
                    display: block;
                    width: 0;
                    height: 0;
                    border-left: .0689rem solid transparent;
                    border-right: .0689rem solid transparent;
                    border-bottom: .55rem solid #303030;
                }

                &::after {
                    content: '';
                    display: block;
                    width: 0;
                    height: 0;
                    border-left: solid .0689rem transparent;
                    border-right: solid .0689rem transparent;
                    border-top: solid .2rem #303030;
                    margin-bottom: .7rem;
                }

            }
        }
    }

    .info {
        display: flex;
        flex-direction: column;
        float: right;
        width: 100%;
        height: 4rem;
        color: #fff;

        h4 {
            font-weight: 700;
            font-size: .4rem;
            text-align: center;
            height: calc(4rem / 7);
            z-index: 1;
        }

        .row {
            text-align: center;
            height: calc(4rem / 7);

            &:nth-of-type(1) span::after {
                content: "天";
            }

            &:nth-of-type(2) span::after {
                content: "小时";
            }

            &:nth-of-type(3) span::after {
                content: "分钟";
            }

            &:nth-of-type(4) span::after {
                content: "秒";
            }

            &:nth-of-type(5) span::after {
                content: "毫秒";
            }

            &:nth-of-type(6) {
                font-size: .29rem;
                font-family: "华文行楷";
            }

            .ms {
                display: none;
            }

            span {
                display: block;
                font-size: .3rem;
            }
        }

        img {
            position: absolute;
            top: 80px;
            left: 50%;
            width: 130px;
            border-radius: 10px;
        }
    }
}

.urge {
    width: 100%;
    height: 1rem;

    h1 {
        margin: 0;
        padding: 0;
        display: block;
        text-align: center;
        width: 100%;
        height: .5rem;
        font-size: .35rem;
        color: #fff;

        &:nth-child(2) {
            display: none;
        }
    }
}

.footer {
    position: fixed;
    bottom: 0;
    width: 90%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: .4rem .4rem 0 0;
    overflow: hidden;

    .hd {
        margin-top: .1rem;
        text-indent: .5rem;
        border-bottom: 1px solid #ccc;
        font-size: .2rem;
    }

    .bd {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .java,
        .mylife,
        .unkown {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            flex: 1;

            a {
                color: #000;
                text-decoration: none;

                img {
                    width: .8rem;
                    height: .8rem;
                    border: solid 2px #ccc;
                }

                p {
                    font-size: .2rem;
                    text-align: center;
                }

            }
        }
    }
}